package com.ruoyi.common.core.domain;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * Entity基类-分页
 *
 * @author ruoyi
 */
public class PageQueryDTO implements Serializable
{
  @NotNull(message = "当前页面不能为空")
  private Integer current;

  @NotNull(message = "每页大小不能为空")
  private Integer size;

  public void setCurrent(Integer current) {
      this.current = current;
  }

  public Integer getCurrent() {
      return current;
  }

  public void setSize(Integer size) {
      this.size = size;
  }

  public Integer getSize() {
      return size;
  }
}

